package com.cssy.xxkj.logic.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.byd.acegiext.domain.User;
import com.cssy.xxkj.logic.dao.LogicWarehouseOtheroutItemDAO;
import com.cssy.xxkj.logic.entity.LogicWarehouseOtheroutItemDO;
import com.cssy.xxkj.logic.service.ILogicWareHouseOtherOutItemService;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;
import com.plat.helper.SearchResult;
import com.plat.util.IDCodeTypeUtil;
@Service("logicWareHouseOtherOutItemService")
public class LogicWareHouseOtherOutItemServiceImpl implements ILogicWareHouseOtherOutItemService {

	@Resource(name = "logicWarehouseOtheroutItemDAO")
	private LogicWarehouseOtheroutItemDAO logicWarehouseOtheroutItemDAO;
	@Override
	public SearchResult findListByExample(SearchConditions scs)
			throws SyBaseException {
		SearchResult rs=new SearchResult(scs);
		rs.setResults(logicWarehouseOtheroutItemDAO.find(scs));
		rs.setRecordCount(logicWarehouseOtheroutItemDAO.count(scs));
		return rs;
	}

	@Override
	public Integer delete(String id, User user) throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer update(LogicWarehouseOtheroutItemDO t, User user)
			throws SyBaseException {
		return logicWarehouseOtheroutItemDAO.updateLogicWarehouseOtheroutItemDO(t);
	}

	@Override
	public LogicWarehouseOtheroutItemDO save(LogicWarehouseOtheroutItemDO t, User user)
			throws SyBaseException {
		String id = IDCodeTypeUtil.getId();
		t.setId(id);
		logicWarehouseOtheroutItemDAO.insertLogicWarehouseOtheroutItemDO(t);
		return t;
	}

	@Override
	public LogicWarehouseOtheroutItemDO findListById(String id) throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<LogicWarehouseOtheroutItemDO> findByPid(String pid)
			throws SyBaseException {
		return logicWarehouseOtheroutItemDAO.findByPid(pid);
	}
	
	@Override
	public void deleteByPid(String pid) throws SyBaseException {
		logicWarehouseOtheroutItemDAO.deleteByPid(pid);
	}

	@Override
	public Integer deleteBizRemoved(String id) throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

}
